package com.headhunter.server;

import java.rmi.Remote;
import java.rmi.RemoteException;

/** 
 * Interface that allow companies to record their job postings
 * @author gokhan
 *
 */
public interface Headhunter extends Remote {

    /**
     * Adds an application record to the database
     * @param ar Information about the job posting
     * @return -1 if unsuccessful, >=0 otherwise. It represents a unique ID for the record 
     * @throws RemoteException
     */
    public int addApplicationRecord(ApplicationRecord ar) throws RemoteException;
    
    public String checkJobs(Graduate graduate) throws RemoteException;
}